/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoopp.qcoinpay;

import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.view.View;

public final class ad extends View {
    private Paint a;
    private int b;
    private int c;
    private Activity d;

    public ad(Context paramContext) {
        super(paramContext);
        this.d = ((Activity) paramContext);
        (paramContext = this).a = new Paint();
        paramContext.a.setColor(-4013374);
        paramContext.a.setAntiAlias(true);
        paramContext.a.setStyle(Paint.Style.FILL);
        paramContext.b = cz.a(paramContext.d, 5.5F);
        paramContext.c = cz.a(paramContext.d, 0.5F);
    }

    public final void onDraw(Canvas paramCanvas) {
        super.onDraw(paramCanvas);
        int i;
        if ((i = getWidth()) == 0)
            return;
        if ((i = (int) (i / this.b + 1.0F)) <= 0)
            return;
        float f1 = 0.0F;
        float f2 = getHeight() / 2.0F;
        for (int j = 0; j < i; ++j) {
            paramCanvas.drawCircle(f1, f2, this.c, this.a);
            f1 += this.b;
        }
    }
}